﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/TemplateAdmin.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace="AirlineProject.Models" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	User
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

   <table class="listing" cellpadding="0" cellspacing="0" width="30">
					<tr>
						
						<th>User Name</th>
						<th>First Name</th>
						<th>Last Name</th>
						<th>Phone Number</th>
						<th>Email</th>
						<th>Gender</th>
						<th>DOB</th>
                        <th>Rights</th>
                        <th>Option</th>
					</tr>
					
                    <%
                        AccountModels tkm = new AccountModels();
                        List<User> lus = tkm.ListUser();
                        foreach(User ds in lus)
                        {
                         %>
                        <tr>
                        
						<td><%= ds.user_name %></td>
						<td><%= ds.first_name %></td>
						<td><%= ds.last_name %></td>
						<td><%= ds.phone_number %></td>
						<td><%= ds.email %></td>
						<td><%= ds.gender %></td>
                        <td><%= ds.DOB %></td>
                        <td><%= ds.rights %></td>
                         <td><a href="<%= Url.Action("adduser","Add") %>"><img src="../../../../Content/admin/images/user_add.png"  title="Show profile" width="16" height="16" /></a><a href="<%= Url.Action("edituser/"+ds.user_id,"edit") %>"><img src="../../../../Content/admin/images/user_edit.png" title="Edit user" width="16" height="16" /></a><a href="<%= Url.Action("deleteuser/"+ds.user_id,"templateadmin") %>"><img src="../../../../Content/admin/images/user_delete.png" title="Delete user" width="16" height="16" /></a></td>
                        </tr>
                            
                      <%  }%>
						
					
				</table>
                <div id="pager">
                    	Page <a href="#"><img src="../../../../Content/admin/images/arrow_left.gif" width="16" height="16" /></a> 
                    	<input size="1" value="1" type="text" name="page" id="page" /> 
                    	<a href="#"><img src="../../../../Content/admin/images/arrow_right.gif" width="16" height="16" /></a>of 42
                    pages | View <select name="view">
                    				<option>10</option>
                                    <option>20</option>
                                    <option>50</option>
                                    <option>100</option>
                    			</select> 
                    per page | Total <strong>420</strong> records found
                    </div>

</asp:Content>
